package com.shiyi.annotations;

import com.shiyi.enums.DataSourceType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author wangzhanshuai
 * @date 2021/3/5 2:55 上午
 * @since 1.0
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DynamicDataSource {

    /**
     * 数据源类型，默认MASTER_DB
     * @return {@link com.shiyi.enums.DataSourceType}
     */
    DataSourceType type() default DataSourceType.MASTER_DB;
}
